package com.xique.park.bean.request.client;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author: caogq
 * @Date: 2021/8/5 11:19
 * @Description:
 */
@Data
public class ClientHandOutInfoRequest {
    @NotBlank(message = "车牌号不能为空")
    @ApiModelProperty("车牌")
    private String plate;

//    @NotBlank(message = "车牌编号不能为空")
    @ApiModelProperty("车场编号")
    private String parkId;

    @NotNull(message = "出场时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    @ApiModelProperty("出场时间")
    private Date outTime;

    private Long outId;
}
